package coreentity

import (
	"core/coreinfo"
	"core/corestruct"
	"core/coreutil"
	"reflect"
)

type HtAction struct {
	Id int64 `json:"id,string"                         gorm:"column:id;primaryKey;comment:主键;autoIncrement:false;"`

	PrjName     string               `json:"prjName"      validate:"max=20"   gorm:"column:prj_name;size:20;DEFAULT:'';not null;comment:代码名称;"`
	CtlFullName string               `json:"ctlFullName"  validate:"max=100"  gorm:"column:ctl_full_name;size:100;DEFAULT:'';not null;comment:CtlFullName;"`
	FullUrl     string               `json:"fullUrl"      validate:"max=100"  gorm:"column:full_url;size:100;DEFAULT:'';not null;comment:Url;"`
	Name        string               `json:"name"         validate:"required,max=50"gorm:"column:name;size:50;DEFAULT:'';not null;comment:名称;"`
	Ename       string               `json:"ename"        validate:"required,max=50"gorm:"column:ename;size:50;DEFAULT:'';not null;comment:ename;"`
	Memo        string               `json:"memo"                             gorm:"column:memo;size:200;DEFAULT:'';not null;comment:备注;"`
	PinType     string               `json:"pinType"      validate:"max=100"  gorm:"column:pin_type;size:100;DEFAULT:'';not null;comment:参数类型;"`
	PinIslist   bool                 `json:"pinIslist"                        gorm:"column:pin_islist;not null;comment:参数是否List;"`
	PoutType    string               `json:"poutType"     validate:"max=100"  gorm:"column:pout_type;size:100;DEFAULT:'';not null;comment:返回类型;"`
	PoutIslist  bool                 `json:"poutIslist"                       gorm:"column:pout_islist;not null;comment:返回是否List;"`
	PoutIspage  bool                 `json:"poutIspage"                       gorm:"column:pout_ispage;not null;comment:返回是否分页;"`
	AuthType    string               `json:"authType"     validate:"max=10"   gorm:"column:auth_type;size:10;DEFAULT:'';not null;comment:授权类型;"`
	LogNeed     bool                 `json:"logNeed"                          gorm:"column:log_need;not null;comment:是否需要日志;"`
	LogTemplete string               `json:"logTemplete"  validate:"max=100"  gorm:"column:log_templete;size:100;DEFAULT:'';not null;comment:日志模板;"`
	LogPin      bool                 `json:"logPin"                           gorm:"column:log_pin;not null;comment:是否记录参数;"`
	LogPout     bool                 `json:"logPout"                          gorm:"column:log_pout;not null;comment:是否记录输出;"`
	CrtDt       corestruct.MyTime    `json:"crtDt"                            gorm:"column:crt_dt;not null;comment:创建日期;"`
	EdtDt       corestruct.MyTime    `json:"edtDt"                            gorm:"column:edt_dt;not null;comment:修改日期;"`
	Deleted     corestruct.DeletedAt `json:"deleted"                          gorm:"column:deleted;DEFAULT:0;type:tinyint(1);not null;comment:删除标志;"`
}

func (p *HtAction) TableName() string {
	return "HtAction"
}
func HtActionInit() {
	var mcls = &HtAction{}
	var m = &corestruct.MyClass{
		Name:     "Url表",
		Ename:    "",
		FullName: "",
		Memo:     "",
		Fileds:   nil,
		PrjName:  coreinfo.PRJ_NAME,
		Type:     reflect.TypeOf(mcls),
	}
	coreutil.StructUtil.AddEntity(m)
}
